package com.hongyue.job3;

import java.util.Collections;
import java.util.TreeSet;

public class Demo {
    public static void main(String[] args) {
        TreeSet<Integer> i = new TreeSet<>();
        Collections.addAll(i, 20, 30, 50, 10, 30, 20);
        for (Integer integer : i) {
            if (integer >= 25) {
                System.out.println("integer = " + integer);
            }
        }
    }
}
